import {Component} from '@angular/core';
import {ApplocalforageService} from '../../server/applocalforage.service';
import {DemejimmerApiservice} from '../../api/demejimmer-apiservice.service';

@Component({
  selector: 'app-page-not-found',
  standalone: true,
  imports: [],
  templateUrl: './page-not-found.component.html',
  styleUrl: './page-not-found.component.less'
})
export class PageNotFoundComponent {
  constructor(private applocalforageService: ApplocalforageService, private demejimmerApiservice: DemejimmerApiservice) {
    console.log('App Page Not Found>>>>>>>constructor');
  }

  kes: string[] = ['123uuuu', 'eeee'];
  dat: string[] = [];

  getAllkeys() {
    this.applocalforageService.keys().then(value => {
      this.dat = value
      console.log(value);
    });
  }

  savekey(key: string, valu: any) {
    this.applocalforageService.setItem(key, valu);
    console.log("baocun>>", key, valu);
  }

  clear() {
    this.applocalforageService.clear();
  }

  testhttpllq() {
    this.demejimmerApiservice.permissionQueryall().subscribe(
      value => console.log(value),
    );
  }

  protected readonly Math = Math;
}
